package com.itheima.dfs.feign;

import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @version 1.0
 * @description 说明
 * @package com.itheima.dfs
 */
@FeignClient(name = "leadnews-dfs", contextId = "dfsFeign")
public interface DfsFeign {
    /**
     * 批量下载图片
     * @param imageList
     * @return
     */
    @PostMapping("/dfs/download")
    ResultVo<List<byte[]>> download(@RequestParam List<String> imageList);
}
